package com.stylefeng.guns.common.dto.acct;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

/**
 * 发送验证码类短信
 * @author carloszhang
 */
@Data
@ApiModel("发送短信")
public class SendMsgReq {

    @ApiModelProperty(value = "手机号",required = true)
    @NotEmpty
    @Pattern(regexp = "^1[3|4|5|6|7|8|9][0-9]\\d{8}$")
    String mobileNo;

    @ApiModelProperty("图形验证码,可空")
    private String kaptcha;

    @ApiModelProperty("设备码,可空")
    private String equ;

}
